#pragma once

#include "Exception.h"

namespace kryptos { namespace cryptography {

class KeyManagerException : public kryptos::util::Exception
{
public:

    enum ErrorType { OPEN_ERROR, GENERATE_KEY_ERROR, DUPLICATE_KEY, IMPORT_KEY_ERROR, LIST_KEY_ERROR, INVALID_PASSPHRASE, INVALID_ID};

    KeyManagerException(ErrorType type, const QString msg) : Exception(type, msg) {}
    virtual ~KeyManagerException() throw() {}
};

}}
